import 'package:win32/win32.dart';

class OpCode {
  final int code;
  final String label;
  final int time;
  final int data;
  final void Function(List<int> args, int code, int pc) callback;
  const OpCode(
      {required this.code,
      required this.label,
      required this.time,
      required this.data,
      required this.callback});

  @override
  String toString() {
    return '${code.toHexString(8)}:[$data-$time:$label]';
  }
}
